package com.ihisomp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 用户与角色关系
 * </p>
 *
 * @author zy
 * @since 2022-04-18
 */
@TableName("t_org_user_role")
public class OrgUserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "user_role_key", type = IdType.INPUT)
    private String userRoleKey;

    /**
     * 机构主键
     */
    private String orgKey;

    /**
     * 用户主键
     */
    private String userKey;

    /**
     * 角色主键
     */
    private String roleKey;

    public String getUserRoleKey() {
        return userRoleKey;
    }

    public void setUserRoleKey(String userRoleKey) {
        this.userRoleKey = userRoleKey;
    }
    public String getOrgKey() {
        return orgKey;
    }

    public void setOrgKey(String orgKey) {
        this.orgKey = orgKey;
    }
    public String getUserKey() {
        return userKey;
    }

    public void setUserKey(String userKey) {
        this.userKey = userKey;
    }
    public String getRoleKey() {
        return roleKey;
    }

    public void setRoleKey(String roleKey) {
        this.roleKey = roleKey;
    }

    @Override
    public String toString() {
        return "OrgUserRole{" +
            "userRoleKey=" + userRoleKey +
            ", orgKey=" + orgKey +
            ", userKey=" + userKey +
            ", roleKey=" + roleKey +
        "}";
    }
}
